package com.example.springbootoauth2.service;

import com.example.springbootoauth2.dao.UserDao;
import com.example.springbootoauth2.model.user.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public List<Role> getAllRole() {
        return userDao.queryAllRole();
    }
}
